package com.homedo.odin.solution.contract.oms;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.contract.mng.HotKeywordEditReq;
import com.homedo.odin.solution.model.base.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * @author: liyi
 * @date: 2018/5/16 16:51
 * @Description:
 */
@Data
@ApiModel(description = "更新热门关键词列表")
@JsonIgnoreProperties(ignoreUnknown = true)
public class HotKeywordListReq extends BaseRequest {

    @ApiModelProperty("热门关键词列表")
    @NotNull(message = "热门关键词列表不能为空")
    @Size(min = 1, message = "热门关键词列表不能为空")
    @Valid
    private List<HotKeywordEditReq> list;
}
